<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	template="/templates/template.xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:nu="http://nu.jcperera.homeip.net/facelets" xmlns:p="http://primefaces.org/ui">

	<ui:param name="title" value="NU Application Edit Web Info Site Page" />

	<ui:define name="body">
		<p:outputPanel>
			<p:messages id="edit-messages" autoUpdate="true" closable="true" showDetail="true" />

			<p:panel id="edit-panel" header="Create new Web Info Site" style="margin-bottom:10px;">
				<h:panelGrid columns="3" style="margin-bottom:10px;">
					<h:outputLabel for="entityid" value="ID: " />
					<p:inputText id="entityid" value="#{webInfoSiteBean.entityid}" required="false" label="ID" size="45"
						readonly="true" disabled="true" />
					<p:message for="entityid" />

					<h:outputLabel for="url" value="URL: *" />
					<p:inputText id="url" value="#{webInfoSiteBean.url}" required="true" label="URL" size="150">
						<f:validateLength minimum="15" />
					</p:inputText>
					<p:message for="url" />

					<h:outputLabel for="parameters" value="Parameters: *" />
					<p:inputText id="parameters" value="#{webInfoSiteBean.parameters}" required="true" label="Parameters" size="100">
						<f:validateLength minimum="10" />
					</p:inputText>
					<p:message for="parameters" />
				</h:panelGrid>

				<p:commandButton value="Save" action="#{webInfoSiteBean.saveWebInfoSite}" id="saveButton"
					icon="ui-icon-disk" update="edit-panel,edit-messages"></p:commandButton>

				<p:button value="Go to list" outcome="/pages/webinfosite/list.xhtml?faces-redirect=true" process="@this" />
			</p:panel>
		</p:outputPanel>
	</ui:define>
</ui:composition>